package com.xhsj.user.pms.patent.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xhsj.user.pms.patent.domain.Bill;
import com.xhsj.user.pms.patent.domain.BillList;
import com.xhsj.user.pms.patent.domain.ExamineModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description 缴费通知单表 - tb_pam_bill
 * @author 苏小林
 */
@Mapper
public interface BillMapper extends BaseMapper<Bill> {
//    int deleteByPrimaryKey(String billInformId);
//
//    int insert(Bill record);
//
//    int insertSelective(Bill record);
//
//    Bill selectByPrimaryKey(String billInformId);
//
//    int updateByPrimaryKeySelective(Bill record);
//
//    int updateByPrimaryKey(Bill record);

    // 查询所有
    IPage<BillList> findBillList(IPage<BillList> page, @Param("name") String name, @Param("inventor") String inventor, @Param("fullName") String fullNam);

    // 查询过期列表
    IPage<BillList> findexpiredList(IPage<BillList> page, @Param("name") String name, @Param("inventor") String inventor, @Param("fullName") String fullNam);

    // 查询已续费
    IPage<BillList> findRenewalList(IPage<BillList> page, @Param("name") String name, @Param("inventor") String inventor, @Param("fullName") String fullNam);

    // 查询快到期
    IPage<BillList> findExpiringList(IPage<BillList> page, @Param("name") String name, @Param("inventor") String inventor, @Param("fullName") String fullName);

    // 根据交底书id 查询缴费详情
    List<BillList> billDetailByDisclosure(@Param("disclosureId") String disclosureId);

    List<Map<String, Object>> getBillByDisclosureId(@Param("billForDisclosure") String billForDisclosure);
}